import { createStore } from '../index'

const initState = {
  a: 1,
  b: 2
}

let store = createStore(initState)

store.subscribe(() => {
  let state = store.getState()
  console.log(state)
})